﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NoRefsTest.DataModels;

namespace NoRefsTest.DataManager
{
	public class MyDal
	{
		public Entity1 GetEntity1(int id)
		{
			//using (var ctxt = new MyModelsContainer())
			//{
			//    var res = from item in ctxt.Entity1Set
			//              where item.Id == id
			//              select item;
			//    var entity = res.First();
			//    return entity;
			//}

			var entity = new Entity1 { Id = id, Name = id.ToString() };
			return entity;
		}
	}
}
